import { Rule } from "./types";

export const PylintWarningRuleList: Rule[] = [
    {
        code: "PLW0120",
        name: "useless-else-on-loop",
        descEn: "else clause on loop without a break statement; remove the else and de-indent all the code inside it",
        descCn: "",
        autoFix: false,
    },
    {
        code: "PLW0129",
        name: "assert-on-string-literal",
        descEn: "Asserting on an empty string literal will never pass",
        descCn: "",
        autoFix: false,
    },
    {
        code: "PLW0602",
        name: "global-variable-not-assigned",
        descEn: "Using global for {name} but no assignment is done",
        descCn: "",
        autoFix: false,
    },
    {
        code: "PLW0603",
        name: "global-statement",
        descEn: "Using the global statement to update {name} is discouraged",
        descCn: "",
        autoFix: false,
    },
    {
        code: "PLW0711",
        name: "binary-op-exception",
        descEn: "Exception to catch is the result of a binary and operation",
        descCn: "",
        autoFix: false,
    },
    {
        code: "PLW1508",
        name: "invalid-envvar-default",
        descEn: "Invalid type for environment variable default; expected str or None",
        descCn: "",
        autoFix: false,
    },
    {
        code: "PLW2901",
        name: "redefined-loop-name",
        descEn: "Outer {outer_kind} variable {name} overwritten by inner {inner_kind} target",
        descCn: "",
        autoFix: false,
    },
];